home *** CD-ROM | disk | FTP | other *** search
/ Loadstar 25 / 025.d81 / t.fast sprites < prev    next >
Text File  |  2022-08-26  |  1KB  |  83 lines

  1.  
  2.  
  3.            FAST SRITES
  4.                 by
  5.            Mark Robin
  6.  
  7.  
  8. COMMODORE POWER/PLAY MAGAZINE
  9. June/July, 1986
  10. p.62
  11.  
  12.  
  13.   This small utility adds commands to
  14.  
  15. BASIC that allow you to move sprites
  16.  
  17. 16 times faster than normal-- without
  18.  
  19. PEEKS or POKES.  The syntax of the
  20.  
  21. new commands is:
  22.  
  23.           *       1        A
  24.           ^       ^        ^
  25.       asterisk sprite# direction
  26.  
  27.  
  28.   For example, the command to move
  29.  
  30. sprite number #1 up one position
  31.  
  32. would be: *1A.  (There are 16
  33.  
  34. possible directions for the sprite to
  35.  
  36. move, labeled from A to P.  The
  37.  
  38. Commodore Magazine article has a
  39.  
  40. table of directions.)
  41.  
  42.  
  43.   You may use more than one command
  44.  
  45. in a row.  For example:
  46.  
  47.  
  48.            *1A*2E*3F84A
  49.  
  50.  
  51. And if you use an IF-THEN statement,
  52.  
  53. a colon must come after THEN.  For
  54.  
  55. example, if you wanted to move sprite
  56.  
  57. #1 up if variable A is equal to five,
  58.  
  59. the command would read:
  60.  
  61.  
  62.           IF A=5 THEN:*1A
  63.  
  64.  
  65.   To use fast sprites in your own
  66.  
  67. programs, write your own program
  68.  
  69. between lines 97 and 1000 of FAST
  70.  
  71. SPRITES.  If you want to see what fast
  72.  
  73. sprites look like, you can run FAST
  74.  
  75. SPRITES and look at the demo.
  76.  
  77.  
  78. FILES REQUIRED:
  79.  
  80. FAST SPRITES
  81.  
  82. -----------< end of text >------------
  83.